home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 9,300 to 9,399 / 9300.zip / AOLDLs / HTML & Web Tools (MAC) / RTF_ RTFtoHTML v 3.9.3 / R2HPPC.sit / r2h / html-trn < prev    next >
Text File  |  1998-02-05  |  10KB  |  353 lines

  1. # Starting with rtftohtml 2.7, all html-trans files have a version number
  2. # The version number must appear before any other tables.
  3. .Version,4
  4.  
  5. # The .Strings table sets values to be used by the translator
  6. # format is "name","value"
  7. # The quotes may be ommitted for numbers, but are also allowed there
  8. .Strings
  9. # uncomment "SkipNavPanel" to eliminate navigation panels
  10. #"SkipNavPanel",1
  11.  
  12. # uncomment "SkipLeadingToc" to eliminate leading table of contents
  13. #"SkipLeadingToc",1
  14.  
  15. # uncomment "SkipTrailingToc" to eliminate trailing table of contents
  16. #"SkipTrailingToc",1
  17.  
  18. # uncomment "SkipDimsOnIMGs" to eliminate HEIGHT/WIDTH tags for images
  19. #"SkipDimsOnIMGs",1
  20.  
  21. # Set the default title (if not in RTF and not on the command line)
  22. "DefaultTitle",""
  23.  
  24. # Set the number of digits used for short file name suffixes
  25. # The number of allowable files is 10^ShortFileDigits -1 
  26. # the default is 2 (99 files) 3 would give you 999
  27. #"ShortFileDigits","3"
  28.  
  29. # WMF files need to be scaled by 133% to look the same size as they appear in Word
  30. "WMFAdjust",133
  31.  
  32. # Uncomment "AllBorder" to force all tables to have the BORDER attribute
  33. "AllBorder",1
  34.  
  35. # This tag is added to href's to external documents
  36. "ExtTarget",'TARGET="_top"'
  37.  
  38. # This line is inserted before Footnotes at the end of the page
  39. "FNSep","<HR>"
  40.  
  41. # Set DoAllPars if you want empty paragraphs to be output
  42. #"DoAllPars",1
  43.  
  44. # Shhhhhh.... undocumented debugging switches!
  45. #"DebugPass1",-1
  46. #"DebugPass2",-1
  47.  
  48.  
  49.  
  50. #
  51. # Localize File name Table
  52. # Used to transform file names use as links in the RTF document
  53. # to the links used within the HTML output.
  54. # Format:
  55. # "tag"[,"regexp","regsub"]
  56. # Where tag can be
  57. # "LOWER"        - translate to lower case
  58. # "UPPER"        - translate to upper case
  59. # "ENCODE"        - encode "bad" characters as hex
  60. # "DECODE"        - decode "bad" characters from hex
  61. # "SUBSTITUTE"    - perform a regular expression style substitution
  62. #                  where "regexp" is a regular expression search pattern
  63. #                  and "regsup" is a substition pattern
  64. .LFXform
  65. # translate all special characters to %nn format
  66. "ENCODE"
  67. # strip directory from file name
  68. "SUBSTITUTE",".*%5C",""
  69. # Strip extension if it exists 
  70. "SUBSTITUTE","\.[^.]*$",""
  71. # Add a .gif extension
  72. "SUBSTITUTE","$",".gif"
  73.  
  74. # Paragraph Style Tags table
  75. # Format:
  76. #"name","starttag","endtag","col2mark","tabmark","parmark",allowtext,cannest,DeleteCol1,fold,TocStyl
  77. .PTag
  78. "Normal","<p>","</p>\n","\t","\t","<br>\n",1,0,0,1,0
  79. "h1","<h1>\n","</h1>\n","\t","\t","<br>\n",0,0,0,1,1
  80. "h2","<h2>\n","</h2>\n","\t","\t","<br>\n",0,0,0,1,2
  81. "h3","<h3>\n","</h3>\n","\t","\t","<br>\n",0,0,0,1,3
  82. "h4","<h4>\n","</h4>\n","\t","\t","<br>\n",0,0,0,1,4
  83. "h5","<h5>\n","</h5>\n","\t","\t","<br>\n",0,0,0,1,5
  84. "h6","<h6>\n","</h6>\n","\t","\t","<br>\n",0,0,0,1,6
  85. "ul","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,0,1,0
  86. "ul-d","<ul>\n<li>","</ul>","\t","\t","\n<li>",1,1,1,1,0
  87. "ol","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,0,1,0
  88. "ol-d","<ol>\n<li>","</ol>","\t","\t","\n<li>",1,1,1,1,0
  89. "dl","<dl>\n<dt>","</dl>","\n<dd>","\t","\n<dt>",1,1,0,1,0
  90. "TERM","<dl>\n<dt>","</dl>","\t","\t","\n<dt>",1,1,0,1,0
  91. "DEF","<dd>","","\t","\t","\n<br>",1,1,0,1,0
  92. "dir","<dir>\n<li>","</dir>","\n<li>","\n<li>","\n<li>",0,1,0,1,0
  93. "menu","<menu>\n<li>","</menu>\n","\n<li>","\n<li>","\n<li>",0,1,0,1,0
  94. "address","<address>","</address>\n","\t","\t","<br>\n",1,0,0,1,0
  95. "pre","\n<pre>\n","\n</pre>\n","\t","\t","\n",0,0,0,0,0
  96. "blockquote","<blockquote>","</blockquote>","\t","\t","\n",1,0,0,1,0
  97. "Banner","<center>","</center>","\t","\t","\n",1,0,0,1,0
  98. "Centered","<center>","</center>","\t","\t","\n",1,0,0,1,0
  99. "hr","<hr>","","","","",1,0,0,1,0
  100. # This is a required entry; tables will be formatted with this entry
  101. "_Table","","","\t","\t","\n",1,1,0,0,0
  102. "_Caption","\n","\n","\t","\t","<br>\n",1,0,0,1,0
  103.  
  104. # Text STyle Tags table
  105. # Format
  106. # "name","Starttag","Endtag"
  107. .TTag
  108. "b","<b>","</b>"
  109. "i","<i>","</i>"
  110. "u","<u>","</u>"
  111. "em","<em>","</em>"
  112. "cite","<cite>","</cite>"
  113. "tt","<tt>","</tt>"
  114. "strong","<strong>","</strong>"
  115. "code","<code>","</code>"
  116. "samp","<samp>","</samp>"
  117. "kbd","<kbd>","</kbd>"
  118. "var","<var>","</var>"
  119. "dfn","<dfn>","</dfn>"
  120. "sup","<sup>","</sup>"
  121. "sub","<sub>","</sub>"
  122. "strike","<strike>","</strike>"
  123. "Times12","<font face="Times" size=12>","</font>"
  124. "Times14","<font face="Times" size=14>","</font>"
  125. "Times28","<font face="Times" size=28>","</font>"
  126. "Size12","<font  size=12>","</font>"
  127. "Size14","<font  size=14>","</font>"
  128. "Size18","<font  size=18>","</font>"
  129. "Size28","<font size=28>","</font>"
  130. "_Center","<center>","</center>"
  131.  
  132. # Text Match Table
  133. # Format:
  134. # "Font",FontSize,Match,Mask,"TextStyleName"
  135. # "" is don't care for fonts
  136. # 0 is don't care for font size
  137. # Special names for TextStyleName
  138. # _Discard - text will not be output
  139. # _Name    - text will be used for an named anchor
  140. # _HRef    - text is an href
  141. # _Hot     - end of this text marks the end of hot text
  142. # _Literal - text is sent thorough without any translation
  143. # _Center  - Required to be one and only one entry
  144. # The order of bits for match and mask is:
  145. #    v^bDWUHACSOTIB - Bold
  146. #    v^bDWUHACSOTI - Italic
  147. #    v^bDWUHACSOT - StrikeThrough
  148. #    v^bDWUHACSO - Outline
  149. #    v^bDWUHACS - Shadow
  150. #    v^bDWUHAC - SmallCaps
  151. #    v^bDWUHA - AllCaps
  152. #    v^bDWUH - Hidden
  153. #    v^bDWU - Underline
  154. #    v^bDW - Word Underline
  155. #    v^bD - Dotted Underline
  156. #    v^b - Double Underline
  157. #    v^ - SuperScript
  158. #    v - SubScript
  159. #    v^bDWUIACSOTIB
  160. .TMatch
  161. #
  162. # First do specials, because they are higher priority than other matches
  163. # double-underline/not hidden -> hot text
  164. # double-underline/hidden -> href
  165. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  166. "",0,00100000000000,00100010000000,"_Hot"
  167. "",0,00100010000000,00100010000000,"_HRef"
  168.  
  169. # hidden/shadow -> literal
  170. # hidden/strikethru -> literal
  171. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  172. "",0,00000010010000,00000010010000,"_Literal"
  173. "",0,00000010000100,00000010000100,"_Literal"
  174.  
  175. # hidden/shadow -> literal
  176. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  177. "",0,00000010000100,00000010000100,"_Literal"
  178.  
  179. # hidden/outline -> Name
  180. # hidden/SuperScript -> Name
  181. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  182. "",0,00000010001000,00000010001000,"_Name"
  183. "",0,01000010000000,01000010000000,"_Name"
  184.  
  185. # hidden/all other hiddens are discarded
  186. "",0,00000010000000,00000010000000,"_Discard"
  187.  
  188. # All other Superscripts just superscripts
  189. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  190. "",0,01000000000000,01000000000000,"sup"
  191.  
  192. # just subscripts
  193. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  194. "",0,10000000000000,10000000000000,"sub"
  195.  
  196. # Regular matches - You can have multiple of these active
  197.  
  198. # monospace fonts -> tt
  199. "Courier",0,00000000000000,00000000000000,"tt"
  200. "Courier New",0,00000000000000,00000000000000,"tt"
  201. "Monaco",0,00000000000000,00000000000000,"tt"
  202.  
  203. # bold -> bold
  204. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  205. "",0,00000000000001,00000000000001,"b"
  206.  
  207. # italic/underline -> cite, italic/nounderline -> italic
  208. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  209. "",0,00000000000010,00000100000010,"i"
  210. "",0,00000100000010,00000100000010,"cite"
  211.  
  212. # any underline without italic -> underline
  213. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  214. "",0,00010000000000,00111100000010,"u"
  215. "",0,00001000000000,00111100000010,"u"
  216. "",0,00000100000000,00111100000010,"u"
  217. "",0,00100000000000,00111100000010,"u"
  218.  
  219. # strikethrough -> strikethrough
  220. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  221. "",0,00000000000100,00000000000100,"strike" 
  222.  
  223. # outline,shadow -> em
  224. #    v^bDWUHACSOTIB,v^bDWUHACSOTIB
  225. "",0,00000000001000,00000000001000,"em"
  226. "",0,00000000010000,00000000010000,"em"
  227.  
  228. # Using these will turn on Font Sizing
  229. #"",12,0,0,"Size12"
  230. #"",14,0,0,"Size14"
  231. #"",18,0,0,"Size18"
  232. #"",28,0,0,"Size28"
  233.  
  234. # You could turn on both font and size matching
  235. #"Times",12,0,0,"Times12"
  236. #"Times",14,0,0,"Times14"
  237. #"Times",28,0,0,"Times28"
  238.  
  239. # Center entry
  240. # By design, this should never match text
  241. # It is only used to provide a hook for the <Center> tag 
  242. "NotAfoNT",1,11111111111111,11111111111111,"_Center"
  243.  
  244. # Format:
  245. # "Paragraph Style",NestLevel,"ParagraphStyleName"
  246. # First Entry is the default if no style match. Should be level 0 
  247. # point to a Paragraph style with no markup
  248. .PMatch
  249. "Normal",0,"Normal"
  250. "table-heading",0,"Normal"
  251. "TableElement",0,"Normal"
  252. # This is a required entry; tables will be formatted with this entry
  253. "_Table",0,"_Table"
  254. "heading 1",0,"h1"
  255. "heading 2",0,"h2"
  256. "heading 3",0,"h3"
  257. "heading 4",0,"h4"
  258. "heading 5",0,"h5"
  259. "heading 6",0,"h6"
  260. "ol",0,"ol"
  261. "ol 1",1,"ol"
  262. "ol 2",2,"ol"
  263. "ol 3",3,"ol"
  264. "ol 4",4,"ol"
  265. "ol 5",5,"ol"
  266. "ul",0,"ul"
  267. "ul 1",1,"ul"
  268. "ul 2",2,"ul"
  269. "ul 3",3,"ul"
  270. "ul 4",4,"ul"
  271. "ul 5",5,"ul"
  272. "numbered list",0,"ol-d"
  273. "numbered list 1",1,"ol-d"
  274. "numbered list 2",2,"ol-d"
  275. "numbered list 3",3,"ol-d"
  276. "numbered list 4",4,"ol-d"
  277. "numbered list 5",5,"ol-d"
  278. "bullet list",0,"ul-d"
  279. "bullet list 1",1,"ul-d"
  280. "bullet list 2",2,"ul-d"
  281. "bullet list 3",3,"ul-d"
  282. "bullet list 4",4,"ul-d"
  283. "bullet list 5",5,"ul-d"
  284. "dir",0,"dir"
  285. "dir 1",1,"dir"
  286. "dir 2",2,"dir"
  287. "dir 3",3,"dir"
  288. "dir 4",4,"dir"
  289. "dir 5",5,"dir"
  290. "small gloss",0,"dl"
  291. "small gloss 1",1,"dl"
  292. "small gloss 2",2,"dl"
  293. "small gloss 3",3,"dl"
  294. "small gloss 4",4,"dl"
  295. "small gloss 5",5,"dl"
  296. "glossary",0,"dl"
  297. "glossary 1",1,"dl"
  298. "glossary 2",2,"dl"
  299. "glossary 3",3,"dl"
  300. "glossary 4",4,"dl"
  301. "glossary 5",5,"dl"
  302. "menu",0,"menu"
  303. "menu 1",1,"menu"
  304. "menu 2",2,"menu"
  305. "menu 3",3,"menu"
  306. "menu 4",4,"menu"
  307. "menu 5",5,"menu"
  308. "pre",0,"pre"
  309. "blockquote",0,"blockquote"
  310. "address",0,"address"
  311. "hr",0,"hr"
  312. # the following paragraph styles will be discarded
  313. "toc 1",0,"_Discard"
  314. "toc 2",0,"_Discard"
  315. "toc 3",0,"_Discard"
  316. "toc 4",0,"_Discard"
  317. "toc 5",0,"_Discard"
  318. "toc 6",0,"_Discard"
  319. "TOC heading 1",0,"_Discard"
  320. "TOC heading 2",0,"_Discard"
  321. "title 1",0,"_Discard"
  322. "table of figures",0,"_Discard"
  323. "caption",0,"_Caption"
  324. "index 1",0,"_Discard"
  325. "index 2",0,"_Discard"
  326. "index 3",0,"_Discard"
  327. "index 4",0,"_Discard"
  328. "index 5",0,"_Discard"
  329. "TERM",0,"TERM"
  330. "DEF",1,"DEF"
  331. "TERM 1",1,"TERM"
  332. "DEF 1",2,"DEF"
  333. "TERM 2",2,"TERM"
  334. "DEF 2",3,"DEF"
  335. "HTML",0,"_Literal"
  336. "footnote text",0,"Normal"
  337. "banner1",0,"Normal"
  338. "header",0,"Normal"
  339. "banner2",0,"Normal"
  340. #"Title",0,"h1"
  341. "Title",0,"Normal"
  342. "Normal Indent",0,"blockquote"
  343. "Code",0,"pre"
  344. "TableSpace",0,"Normal"
  345. "TableRow",0,"Normal"
  346. "TableSubHead",0,"h3"
  347. "Normal Note",0,"Normal"
  348. "Centered",0,"Centered"
  349. "Banner",0,"Banner"
  350. "anchor",0,"Normal"
  351. "Body Text",0,"Normal"
  352.